home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
clang
/
zcpp_jae.zip
/
MAKEFILE.ZTC
< prev
next >
Wrap
Text File
|
1992-07-14
|
2KB
|
94 lines
# ------------------------------------------------------------------------
# This is a makefile custom tailored to make the Texas Instruments' CPP
# processor for DOS using Zortech tools.
#
# Guy C. Gallant, 27Apr91
# J. Alan Eldridge 07/14/92 added stuff for protected mode, dependency
# of template.c on cppdef.h
# ------------------------------------------------------------------------
CC = ztc
# use this one for 32 bit protected mode
#CFLAGS = -mx -o -p -DCOOL -DMSDOS -DVOID_SUPPORT -DOK_STDC=0
CFLAGS = -mli -o -p -DCOOL -DMSDOS -DVOID_SUPPORT -DOK_STDC=0
OBJS = cpp1.obj cpp2.obj cpp3.obj cpp4.obj cpp5.obj cpp6.obj cpp7.obj \
defmacio.obj hash.obj defpacka.obj parmtype.obj macro.obj \
member.obj class.obj template.obj exceptio.obj generate.obj compress.obj
# Rules
# -----
.c.obj:
$(CC) -c $(CFLAGS) $<
# The primary target.
# -------------------
# use this one for 32 bit with X32 extender
#cpp.exe: $(OBJS) cpp.rsp
# $(CC) -o$@ $(CFLAGS) @cpp.rsp x32v.lib
cpp.exe: $(OBJS) cpp.rsp
$(CC) -o$@ $(CFLAGS) @cpp.rsp
# How to create rsp file.
# -----------------------
cpp.rsp: makefile.ztc
@echo cpp1.obj cpp2.obj cpp3.obj cpp4.obj cpp5.obj >cpp.rsp
@echo cpp6.obj cpp7.obj defmacio.obj hash.obj defpacka.obj >>cpp.rsp
@echo parmtype.obj macro.obj member.obj class.obj template.obj >>cpp.rsp
@echo exceptio.obj generate.obj compress.obj >>cpp.rsp
#
# ** Remove unneeded files
#
clean:
-del *.obj
#
# Object module dependencies
#
cpp1.obj : cpp1.c cpp.h cppdef.h
cpp2.obj : cpp2.c cpp.h cppdef.h
cpp3.obj : cpp3.c cpp.h cppdef.h
cpp4.obj : cpp4.c cpp.h cppdef.h
cpp5.obj : cpp5.c cpp.h cppdef.h
cpp6.obj : cpp6.c cpp.h cppdef.h
cpp7.obj : cpp7.c cpp.h cppdef.h
defmacio.obj : defmacio.c defmacio.h
parmtype.obj : parmtype.c defmacio.h
macro.obj : macro.c macro.h defmacio.h
defpacka.obj : defpacka.c defmacio.h
hash.obj : hash.c
issame.obj : issame.c defmacio.h
member.obj : member.c defmacio.h
class.obj : class.c defmacio.h
template.obj : template.c defmacio.h cppdef.h
exceptio.obj : exceptio.c macro.h defmacio.h
generate.obj : generate.c macro.h defmacio.h
compress.obj : compress.c defmacio.h